'use strict';
const path = require('path')
//路径处理兼容macOS和window
module.exports = function formatPath (p) {
  if(p && typeof p === 'string') {
    const sep = path.sep;
    if(sep === '/'){
      return p
    }else {
      return p.replace(/\\/g, '/')
    }
  }
  return p
};


